package Apresentacao;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

import Negocio.*;
import Negocio.Professor;
import Persistencia.PersistirDados;



public class Principal {

	/**
	 * @param args
	 * @throws ClassNotFoundException 
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {


		

		List<Professor> professores;
		ISistema f= new FachadaSistema();
		professores=PersistirDados.recuperaUsandoArquivos();
		for(Professor p:professores){

			System.out.println("Professor: "+p.getNome()+"\n"+"Matricula: "+p.getMatricula()+"\n");

		}		/*
		ISistema f= new FachadaSistema();

		f.cadastraProf("Ayla","123");
		f.cadastraProf("fabiano", "133");
		f.cadastraProf("Rodrigo","333");
		f.cadastraProf("jessyca", "111");


		for(Professor p:f.ListarProfessorDepart()){

			System.out.println(p.getNome()+"\n"+p.getMatricula());

		}

		 */



	}

}
